package com.woniu.zsd.shopping.service;

import com.woniu.zsd.shopping.dto.ProductStatisticsDto;
import com.woniu.zsd.shopping.dto.QueryProductOrderDto;
import com.woniu.zsd.shopping.model.AddReceiverInfoParam;
import com.woniu.zsd.shopping.model.ProductOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.zsd.shopping.param.AddProductOrderParam;

import java.time.LocalDateTime;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhangtao
 * @since 2025年02月18日
 */
public interface ProductOrderService extends IService<ProductOrder> {

    // 统计商品订单数据
    ProductStatisticsDto productStatistics(LocalDateTime startOfDay, LocalDateTime endOfDay) throws Exception;

    void addProductOrder(AddProductOrderParam param) throws Exception;

    void updateProductOrderStatus(Integer productOrderId, Integer status) throws Exception;

    void addReceiverInfo(AddReceiverInfoParam param) throws Exception;

    QueryProductOrderDto queryProductOrder(Integer productOrderId) throws Exception;
}
